package com.neuedu.demo3;

import java.util.Scanner;

public class Homework08 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int x = sc.nextInt();
        System.out.println("请输入第二个数");
        int y = sc.nextInt();
        System.out.println("请输入第三个数");
        int z = sc.nextInt();
        int temp;
        //若x>y,x与y交换
        temp = Math.min(x, y);
        y = Math.max(x, y);
        x = temp;

        //若x>z,x与z交换
        temp = Math.min(x, z);
        z = Math.max(x, z);
        x = temp;
        //若y>z,y与z交换
        temp = Math.min(y, z);
        z = Math.max(y, z);
        y = temp;
        System.out.println(x + "<" + y + "<" + z);
    }
}
